﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/BizUserMaster.Master" AutoEventWireup="true" CodeBehind="SearchListing.aspx.cs" Inherits="BizUser.Search.SearchListing" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table style="width: 100%;">

        <tr>
            <td colspan="2" align="left"><span class="Header">Search for a <i>biz</i></span></td>
        </tr>
        <tr>
            <td style="width: 30%" align="left"></td>
            <td style="width: 65%" align="left"></td>
        </tr>

        <tr>
            <td>Posting #:</td>
            <td>
                <asp:TextBox ID="tbPostingID" runat="server" CssClass="txtBox" Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>Keywords:</td>
            <td>
                <asp:TextBox ID="tbKeyWords" runat="server" CssClass="txtBox" Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>State:</td>
            <td>
                <asp:DropDownList ID="ddlState" runat="server" CssClass="ddl" Width="200px">
                    <asp:ListItem Value="1">AL</asp:ListItem>
                    <asp:ListItem Value="2">AK</asp:ListItem>
                    <asp:ListItem Value="3">NA</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>State:</td>
            <td>
                Add other options as well
            </td>
        </tr>
        <tr>
            <td></td>
            <td style="width: 65%" align="left">&nbsp;</td>
        </tr>

        <tr>
            <td></td>
            <td>
                <asp:Button ID="btnSearch" OnClick="btnSearch_OnClick" CssClass="btn" Width="200px" runat="server" Text="Search" /></td>
        </tr>
         <tr runat="server" id="trSearchItems" visible="false" class="contentRow">
            <td align="center" colspan="2">
                <asp:GridView ID="grdSearchResults" Style="width: 100%" runat="server" CssClass="gridTable"
                    AutoGenerateColumns="False" CellPadding="4" GridLines="None">
                    <Columns>
                        <asp:TemplateField ItemStyle-Width="70px" HeaderText="Posting #">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblBizID" Text='<%#Bind("BizID") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Title">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblTitle" Text='<%#Bind("Title") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Asking Price Low">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblAskingPriceLow" Text='<%#Bind("AskingPriceLow") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Asking Price Low">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lblAskingPriceHigh" Text='<%#Bind("AskingPriceHigh") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Detail">
                            <ItemTemplate>
                                <asp:LinkButton runat="server" ID="lbDetail" Text="View Detail" OnClick="lbDetail_Click"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        
                    </Columns>
                    <HeaderStyle CssClass="gridHeader" />
                    <RowStyle CssClass="gridTable" />
                    <AlternatingRowStyle CssClass="altRow" />
                    <PagerSettings Mode="Numeric" Visible="true" />
                    <EmptyDataTemplate>
                        <span class="error">No drug found.</span></EmptyDataTemplate>
                </asp:GridView>
            </td>
        </tr>
       
    </table>
</asp:Content>
